<template>
  <div>
    <!-- 三联导航  -->
    <TypeNav></TypeNav>

    <!-- 轮播图、尚品汇快报 -->
    <ListContainer :BannerList="BannerList"/>

    <!-- 今日推荐 -->
    <TodayRecommend />

    <!-- 热卖排行 -->
    <Rank />

    <!-- 猜你喜欢 -->
    <Like />

    <!-- 楼层 -->
    <Floor v-for="floor in FloorList" :key="floor.id" :list="floor" />

    <!-- 品牌 -->
    <Brand />
  </div>
</template>
            
            
<script>
import ListContainer from "@/pages/Home/ListContainer";
import TodayRecommend from "@/pages/Home/TodayRecommend";
import Rank from "@/pages/Home/Rank";
import Like from "@/pages/Home/Like";
import Floor from "@/pages/Home/Floor";
import Brand from "@/pages/Home/Brand";
import { mapState } from "vuex";

export default {
  name: "Home",
  components: {
    ListContainer,
    TodayRecommend,
    Rank,
    Like,
    Floor,
    Brand,
  },
  data() {
    return {};
  },

  mounted() {
    // this.$store.dispatch("users/getuserinfo");
  },

  computed: {
    ...mapState("homeModule", { FloorList: "FloorList" ,BannerList:'BannerList'}),
    // ...mapState("homeModule", ["BannerList"]),
  },
};
</script>
            
            
<style scoped>
</style>